package bean;

import java.util.Date;

public class merch {
    private int merchId;
    private int mertypeId;
    private String merchname;
    private Date merchdate;
    private double merchprice;

    public merch(int merchId, int mertypeId, String merchname, Date merchdate, double merchprice) {
        this.merchId = merchId;
        this.mertypeId = mertypeId;
        this.merchname = merchname;
        this.merchdate = merchdate;
        this.merchprice = merchprice;
    }

    public merch() {
    }

    public int getMerchId() {
        return merchId;
    }

    public void setMerchId(int merchId) {
        this.merchId = merchId;
    }

    public int getMertypeId() {
        return mertypeId;
    }

    public void setMertypeId(int mertypeId) {
        this.mertypeId = mertypeId;
    }

    public String getMerchname() {
        return merchname;
    }

    public void setMerchname(String merchname) {
        this.merchname = merchname;
    }

    public Date getMerchdate() {
        return merchdate;
    }

    public void setMerchdate(Date merchdate) {
        this.merchdate = merchdate;
    }

    public double getMerchprice() {
        return merchprice;
    }

    public void setMerchprice(double merchprice) {
        this.merchprice = merchprice;
    }

    @Override
    public String toString() {
        return "merch{" +
                "merchId=" + merchId +
                ", mertypeId=" + mertypeId +
                ", merchname='" + merchname + '\'' +
                ", merchdate=" + merchdate +
                ", merchprice=" + merchprice +
                '}';
    }
}